package com.hrz.datasync.common;
/**
 * @作  者: 侯建军
 * @日  期: 2018/11/05 10:42:27
 * @描  述: code为状态码、msg为提示信息、data为返回的数据
 */
public class RetResult<T> {
    public int code;
    private String msg;
    private T data;
    public RetResult<T> setCode(RetCode retCode) {
        this.code = retCode.code;
        return this;
    }
    public int getCode() {
        return code;
    }
    public RetResult<T> setCode(int code) {
        this.code = code;
        return this;
    }
    public String getMsg() {
        return msg;
    }
    public RetResult<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }
    public T getData() {
        return data;
    }
    public RetResult<T> setData(T data) {
        this.data = data;
        return this;
    }
}